package com.czl.module_storehouse.bean;


import com.chad.library.adapter.base.entity.MultiItemEntity;
import com.czl.base.data.bean.tengyun.ProductBean;
import com.czl.base.data.bean.tengyun.SortBean;

/**
 * @author xubin
 */
public class ShiftAddBean implements MultiItemEntity {

    public static final int TYPE_SORT = 0;
    public static final int TYPE_PRODUCT = 1;

    private SortBean mSortBean;
    private ProductBean mProductBean;
    private int itemType;

    public SortBean getSortBean() {
        return mSortBean;
    }

    public void setSortBean(SortBean sortBean) {
        mSortBean = sortBean;
        setItemType(TYPE_SORT);
    }

    public ProductBean getProductBean() {
        return mProductBean;
    }

    public void setProductBean(ProductBean productBean) {
        mProductBean = productBean;
        setItemType(TYPE_PRODUCT);
    }

    public void setItemType(int itemType) {
        this.itemType = itemType;
    }

    @Override
    public int getItemType() {
        return itemType;
    }
}
